package com.ruoyi.device.mapper;

import com.ruoyi.device.domain.DeviceUserRegister;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * App用户注册Mapper接口
 * @auth
 * @date
 */
public interface DeviceUserRegisterMapper {
    /**
     * 获取App注册用户列表
     *
     * @param params 查询参数
     * @return
     */
    public List<DeviceUserRegister> selectRegisterList(DeviceUserRegister params);

    /**
     * 获取App注册用户详情 By id
     * @param id
     * @return
     */
    public DeviceUserRegister selectRegisterById(Long id);
    /**
     * 获取App注册用户 By openid
     * @param openid
     * @return
     */
    public DeviceUserRegister selectRegisterByOpenId(String openid);
    /**
     * 获取App注册用户By 用户名或者姓名或者手机号
     * @param param
     * @return
     */
    public DeviceUserRegister selectRegisterByName(String param);
    /**
     * 新增app注册用户
     * @param register
     * @return
     */
    public int insertRegister(DeviceUserRegister register);
    /**
     * 修改app注册用户
     * @param register
     * @return
     */
    public int updateRegister(DeviceUserRegister register);

}
